<div class="bs-callout bs-callout-info">
    <h4>Projects</h4>
    <p><a href="<?php echo base_url().'admin/project/add'; ?>">+ Add new project</a></p>
</div>

<table class="table table-hover table-bordered">
    <thead>
        <tr>
            <th width="5%">#</th>
            <th width="40%">Title</th>
            <th width="40%">Link</th>
            <th width="15%">Actions</th>
        </tr>
    </thead>
    <tbody>
        <?php
        if(isset($data) && !empty($data)){
            foreach($data as $key=>$value){
        ?>
        <tr>
            <td><?php echo $value['projectId']; ?></td>
            <td><?php echo $value['title']; ?></td>
            <td><a href="<?php echo $value['link']; ?>" target="_blank"><?php echo $value['link']; ?></a></td>
            <td>
                <a href="<?php echo base_url()?>admin/project/edit/<?php echo $value['id']; ?>">Edit</a>
                <a rel="<?php echo base_url()?>admin/project/delete/<?php echo $value['projectId']; ?>" href="#" class="confirmDelete">Delete</a>
            </td>
        </tr>
        <?php }} ?>
    </tbody>
</table>